<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="struts" uri="/struts-tags" %>
<html>
<head>
    <title>我的申请查询</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script language="javascript" src="${pageContext.request.contextPath}/OfficeAuto/script/jquery.js"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/OfficeAuto/script/pageCommon.js"
            charset="utf-8"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/OfficeAuto/script/PageUtils.js"
            charset="utf-8"></script>
    <link type="text/css" rel="stylesheet"
          href="${pageContext.request.contextPath}/OfficeAuto/style/blue/pageCommon.css"/>
    <script type="text/javascript">
    </script>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13"
                 src="${pageContext.request.contextPath}/OfficeAuto/style/images/title_arrow.gif"/> 我的申请查询
        </div>
        <div id="Title_End"></div>
    </div>
</div>


<div id="QueryArea">
    <div style="height: 30px">
        <table border=0 cellspacing=3 cellpadding=5>
            <struts:form action="flow_myApplicationList!myApplicationList.do" theme="simple">
                <tr>
                    <td>按条件查询：</td>
                    <td>
                        <struts:select list="template" name="formTemplateId" listKey="id" listValue="name" headerKey="0"
                                       headerValue="查看所有模版"/>
                    </td>
                    <td><select id="status" name="status" class="SelectStyle">
                        <option value="">查看全部状态</option>
                        <option value="1">审批中</option>
                        <option value="2">未通过</option>
                        <option value="3">已通过</option>
                    </select>
                    </td>
                    <td><input type="submit"
                               src="${pageContext.request.contextPath}/OfficeAuto/style/blue/images/button/query.PNG"/>
                    </td>
                </tr>
                <script type="text/javascript">
                    $("#status").val(${status});
                </script>
            </struts:form>
        </table>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">
        <!-- 表头-->
        <thead>
        <tr align="CENTER" valign="MIDDLE" id="TableTitle">
            <td width="250px">标题</td>
            <td width="115px">申请人</td>
            <td width="115px">申请日期</td>
            <td width="115px">当前状态</td>
            <td>相关操作</td>
        </tr>
        </thead>

        <struts:iterator value="list">
            <tr>
                <td>${title}</td>
                <td>${applicant.name}</td>
                <td>${applyTime}</td>
                <td>${status}</td>
                <td><struts:a href="flow_downLoad!downLoad.do?applicationId=%{id}">查看申请信息</struts:a>
                    <struts:a href="flow_histApprovedList!histApprovedList.do?applicationId=%{id}">查看流转记录</struts:a>
                </td>
            </tr>
        </struts:iterator>
        <%--<!--显示数据列表：正在审批或审批完成的表单显示示例-->--%>
        <%--<tbody id="TableData" class="dataContainer" datakey="formList">--%>
        <%--<!-- 正在审批或审批完成的表单显示示例 -->--%>
        <%--<tr class="TableDetail1 template">--%>
        <%--<td><a href="${pageContext.request.contextPath}/OfficeAuto/Flow_FormFlow/showForm.jsp">${form.title}</a></td>--%>
        <%--<td>${form.applicant.name}&nbsp;</td>--%>
        <%--<td>${form.applyTime}&nbsp;</td>--%>
        <%--<td>${form.status}&nbsp;</td>--%>
        <%--<td><a href="${pageContext.request.contextPath}/OfficeAuto/Flow_FormFlow/showForm.jsp">查看申请信息</a>--%>
        <%--<a href="${pageContext.request.contextPath}/OfficeAuto/Flow_FormFlow/approvedHistory.jsp">查看流转记录</a>--%>
        <%--</td>--%>
        <%--</tr>--%>
        <%--</tbody>--%>

    </table>

    <!-- 其他功能超链接 -->
    <div id="TableTail">
        <div id="TableTail_inside"></div>
    </div>
</div>

<!--分页信息-->
<%@include file="/OfficeAuto/BBS_Topic/page.jsp" %>
<%--利用form表单提交数据--%>
<struts:form id="pageForm" action="flow_myApplicationList!myApplicationList.do" theme="simple">
    <struts:hidden name="id"></struts:hidden>
</struts:form>
<div class="Description">
    说明：<br/>
    <!--
    1，对于退回的表单，可以执行“修改后再次提交”与“删除”的操作。<br />&nbsp;&nbsp;
       其他状态表单（正在审批的或是审批完成的）则没有这两个操作。<br />
       2，删除退回的申请文档后，此文档相关的审批信息也要同时删除，对应的流程也终止了。<br />
       -->
</div>

</body>
</html>
